﻿<UserControl x:Class="Coproject.Views.ShellView" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:dg="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" 
             xmlns:login="clr-namespace:CoProjectDF.Views.Login" 
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:local="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
             xmlns:bi="clr-namespace:CoProjectDF.Controls"
             xmlns:vw="clr-namespace:Coproject.Views"
             mc:Ignorable="d" d:DesignHeight="350" d:DesignWidth="600">
    <!--
      Based on the ShellView from Coproject.codeplex.com.
      Don't worry how it looks in the VS2010 designer - it's ok when run!
    -->
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="68*" />
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="27*" />
        </Grid.RowDefinitions>

        <bi:BusyIndicator IsBusy="{Binding Busy.IsBusy}" Grid.Row="0" >
            <Grid x:Name="LayoutRoot">
                <Border Style="{StaticResource ContentBorderStyle}">
                    <ContentControl Style="{StaticResource LogoIcon}" Margin="0,0,60,0" Width="330" />
                </Border>
                <Border Style="{StaticResource LeftBorderStyle}" />

                <TextBlock Style="{StaticResource ApplicationTitleStyle}" Text="Coproject, with DevForce &amp; and Caliburn" />
                <ListBox Style="{StaticResource NavigationMenuStyle}" x:Name="Items">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding DisplayName}" />
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel Orientation="Horizontal" />
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
                </ListBox>

                <TextBlock Style="{StaticResource CurrentPageTitleStyle}" x:Name="ActiveItem_Description" />
                <ContentControl Style="{StaticResource MainContentStyle}" x:Name="ActiveItem" Margin="80,220,12,12" />

                <Border Style="{StaticResource LoginContainerStyle}" x:Name="loginContainer">
                    <!-- LoginStatus will be added here in code behind. 
                     This is required for the designer view to work -->

                    <!-- True! Login system was converted by DevForce and is not Caliburn.Micro'fied. 
                     Designer reports a Null reference if started here. -->
                    
                    <!--<login:LoginStatus />-->
                </Border>
            </Grid>
        </bi:BusyIndicator>

        <local:GridSplitter x:Name="grsplSplitter" Grid.Row="1" Height="5" VerticalAlignment="Center" Margin="5"
                            HorizontalAlignment="Stretch"/>  

        <!-- LoggingView contains the Silverlight Datagrid for showing Caliburn.Micro and Ideablade trace messages -->        
        <!-- DataGrid should not be wrapped by BusyIndicator -->
        <ContentControl Grid.Row="2" HorizontalAlignment="Center" >
            <vw:LoggingView />
        </ContentControl>
    </Grid>
</UserControl>
